using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Org.Loon.Framework.Xna.Game.Action.Scripting
{
    public class CallFunction : Function
    {

        private string script;

        public CallFunction(String script)
        {
            this.script = script;
        }

        public override void Update(ScriptFactory engine, Stack<StackFrame> stack, Callback callback)
        {
            callback.Call(script);
            engine.Call(script);
        }

        public string GetScript()
        {
            return script;
        }

    }
}
